package com.yanqu.road.server.cmd.activity.langyabang.fromCross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.LangYaBangProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.langyabang.LangYaBangModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_LANG_YA_BANG_GET_OTHER_HELP_REWARD_RESULT,desc = "琅琊榜获取他人帮助奖励返回")
public class LangYaGetOtherHelpRewardFromCrossCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        LangYaBangProto.LangYaGetOtherHelpRewardRespMsg respMsg = LangYaBangProto.LangYaGetOtherHelpRewardRespMsg.parseFrom(packet.getBytes());
        player.getModule(LangYaBangModule.class).dealOtherHelpRewardResult(respMsg);

    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
